package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-17
 * Time: 21:42
 */
public class Info {
    public String username;
    public String password;

    public void jedgeInfo(String username,String password){
        if(!this.username.equals(username)){
            throw new Usernamejedge("用户名登录异常");
        }
        if(!this.password.equals(password)){
            throw new Passwordjedge("用户密码登录异常");
        }
        System.out.println("登录成功");
    }


    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Info(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
